package com.storage.system.vo;

import com.storage.system.domain.StorageShopOrder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * 首页销售数据
 *
 * @author wb-zh270168
 */
public class SellDetailInfo implements Serializable {

    private Date date;

    private Integer orderNum;

    private BigDecimal orderTotalMoney;

    private List<StorageShopOrder> orders;

    public SellDetailInfo() {
    }

    public SellDetailInfo(Date date, Integer orderNum, BigDecimal orderTotalMoney, List<StorageShopOrder> orders) {
        this.date = date;
        this.orderNum = orderNum;
        this.orderTotalMoney = orderTotalMoney;
        this.orders = orders;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public BigDecimal getOrderTotalMoney() {
        return orderTotalMoney;
    }

    public void setOrderTotalMoney(BigDecimal orderTotalMoney) {
        this.orderTotalMoney = orderTotalMoney;
    }

    public List<StorageShopOrder> getOrders() {
        return orders;
    }

    public void setOrders(List<StorageShopOrder> orders) {
        this.orders = orders;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        SellDetailInfo that = (SellDetailInfo) o;
        return Objects.equals(date, that.date) &&
                Objects.equals(orderNum, that.orderNum) &&
                Objects.equals(orderTotalMoney, that.orderTotalMoney) &&
                Objects.equals(orders, that.orders);
    }

    @Override
    public int hashCode() {
        return Objects.hash(date, orderNum, orderTotalMoney, orders);
    }
}
